#include <iostream>  
#include <cmath>  
#include <iomanip>  
  
int main() {  
    double ability = 1.0;  // 初始能力值  
    int days = 365;  // 总天数  
  
    double work_increase = 1.01;  // 工作日提升比例  
    double rest_decrease = 0.99;  // 休息日下降比例  
  
    for (int i = 0; i < days; ++i) {  
        if (i % 4 < 3) {  
            ability *= work_increase;  
        } else {  
            ability *= rest_decrease;  
        }  
    }  
  
    std::cout  << ability << std::endl;  
  
    return 0;  
}
